<div class="college-section">
	<section class="carousel-holder">
		<h2>College &amp; Universities</h2>
		<div class="carousel">
			<ul id="bxcarousel">
				<?php $resUniversity = $objUniversity -> selectFeatureUniversity();
							$total=12;
							$z=0;
								$c=4;
								$b=0;
		
								if (($total%4)==0){
								$ttoal=$total/4;
								}
								else{
								$ttoal=(intval($total/4))+1;
								}
							//$a=$count/4;
							//$a=ceil($a);
							while($recUniversity=mysqli_fetch_array($resUniversity))
							{
								//var_dump($recUniversity); die();
								echo $recUniversity[2]; die();
									for($i=0; $i<$ttoal; $i++){ 
								?>
					
				<li>
						<?php for($a=$b;$a<$c;$a++)
						{
					        if($a<$c)
					        {  $arr=$z++;
									?>
					<ul>
							<li>
							<a href="universityList.php?action=universityDetails&uId=<?php echo $recUniversity['university_id']; ?>">
								<img src="uploads/university/<?php echo $recUniversity['university_image'];?>" width="220px" height="139px" alt="image description"/>
								<p style="text-align: center; font-weight: bold; "><?php echo $recUniversity['university_id'];?></p>
							</a>
							</li>
					</ul>
						<?php }
								else{
								$b=$c;
								$c=$c+4;
								}
						}
						 }
							?>
					
				</li>
				<?php }?>
				
								<!--<li>
					<ul>
						<?php 
							$resUniversity=$objUniversity->selectFeatureUniversity($a=4);
							while ($recUniversity=mysqli_fetch_array($resUniversity))
							{
						?>
						<li>
							<a href="universityList.php?action=universityDetails&uId=<?php echo $recUniversity['university_id']; ?>">
								<img src="uploads/university/<?php echo $recUniversity['university_image']; ?>" width="220px" height="139px" alt="image description"/>
								<p style="text-align: center; font-weight: bold; "><?php echo $recUniversity['university_name'];?></p>
							</a>
						</li>
						<?php }?>
					</ul>
				</li>
				<li>
					<ul>
						<?php 
							$resUniversity=$objUniversity->selectFeatureUniversity($a=8);
							while ($recUniversity=mysqli_fetch_array($resUniversity))
							{
						?>
						<li>
							<a href="universityList.php?action=universityDetails&uId=<?php echo $recUniversity['university_id']; ?>">
								<img src="uploads/university/<?php echo $recUniversity['university_image']; ?>" width="220px" height="139px" alt="image description"/>
								<p style="text-align: center; font-weight: bold; "><?php echo $recUniversity['university_name'];?></p>
							</a>
						</li>
						<?php }?>
					</ul>
				</li>-->
			</ul>
		</div>
	</section>
</div>
